import { fileURLToPath, URL } from 'node:url'

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { visualizer } from 'rollup-plugin-visualizer'
// import vueDevTools from 'vite-plugin-vue-devtools'11

// https://vite.dev/config/
export default defineConfig({
    plugins: [
        vue(),
        visualizer({
            emitFile: true,
            file: 'stats.html',
            open: true
        })
        // vueDevTools(),
    ],
    resolve: {
        alias: {
            '@': fileURLToPath(new URL('./src', import.meta.url))
        }
    },
    server: {
        port: '7688'
    }
})
